package com.hava.pipeline.toolbox.gui.tray.icon;

import jiconfont.icons.FontAwesome;
import jiconfont.swing.IconFontSwing;

import java.awt.*;

public class DesktopSystemTrayIcon {

    private static Image icon = IconFontSwing.buildImage(FontAwesome.INBOX, 18, Color.WHITE);
    private TrayIcon trayIcon;

    public DesktopSystemTrayIcon() {
        this.trayIcon = new TrayIcon(icon);
    }

    public TrayIcon getTrayIcon() {
        return trayIcon;
    }

    public void setTrayIcon(TrayIcon trayIcon) {
        this.trayIcon = trayIcon;
    }

    public void setPopupMenu(PopupMenu popupMenu) {
        this.trayIcon.setPopupMenu(popupMenu);
    }
}
